home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Programmation / jedit / jedit5.1.0install.exe / {app} / modes / mpost.xml < prev    next >
Extensible Markup Language  |  2013-07-28  |  11KB  |  350 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE MODE SYSTEM "xmode.dtd">
  3. <!--
  4.  METAPOST syntax highlight v0.1.0
  5.  Made by Kondr <kondr@lesnimoudrost.cz>
  6.  Last revision: 2007-05-04
  7.  Cooperates with LaTeX syntax higlight (tested with the jEdit default latex.xml)
  8.  
  9.  Kyword types
  10.  ************
  11.  1 Basic keywords (for, begingig, ... )
  12.  2 Statements
  13.  3 Variables
  14.  4 Constants
  15.  
  16.  Macros are considred as functions, including the z,x,y prefixes.
  17.  
  18.  Recommended catalog entry:
  19.  
  20.    <MODE NAME="Metapost"
  21.          FILE="mpost.xml"
  22.          FILE_NAME_GLOB="*.mp"/>
  23. -->
  24. <MODE>
  25.     <PROPS>
  26.         <PROPERTY NAME="lineComment" VALUE="%"/>
  27.     </PROPS>
  28.     <RULES HIGHLIGHT_DIGITS="TRUE" DIGIT_RE="(0x[[:xdigit:]]+[lL]?|[[:digit:]]+(e[[:digit:]]*)?[lLdDfF]?(cm|in|pt|px)?)">
  29.                <!-- btex...etex -->
  30.         <SPAN TYPE="MARKUP" DELEGATE="tex::MAIN">
  31.             <BEGIN>btex</BEGIN>
  32.             <END>etex</END>
  33.         </SPAN>
  34.             
  35.         <!-- types -->
  36.         <SEQ TYPE="OPERATOR">path</SEQ>
  37.         <SEQ TYPE="OPERATOR">pair</SEQ>
  38.         <EOL_SPAN TYPE="COMMENT1">%</EOL_SPAN>
  39.         
  40.         <!-- xyz suffixes -->
  41.         <SEQ_REGEXP HASH_CHAR="z" AT_WORD_START="TRUE" TYPE="FUNCTION">z[0-9]?</SEQ_REGEXP>
  42.         <SEQ_REGEXP HASH_CHAR="x" AT_WORD_START="TRUE" TYPE="FUNCTION">x[0-9]?</SEQ_REGEXP>
  43.         <SEQ_REGEXP HASH_CHAR="y" AT_WORD_START="TRUE" TYPE="FUNCTION">y[0-9]?</SEQ_REGEXP>
  44.         <MARK_PREVIOUS TYPE="FUNCTION" MATCH_TYPE="CONTEXT">(</MARK_PREVIOUS>
  45.         
  46.         <SEQ TYPE="OPERATOR">&</SEQ>
  47.         <SEQ TYPE="OPERATOR">*</SEQ>
  48.         <SEQ TYPE="OPERATOR">*</SEQ>
  49.         <SEQ TYPE="OPERATOR">**</SEQ>
  50.         <SEQ TYPE="OPERATOR">+</SEQ>
  51.         <SEQ TYPE="OPERATOR">++</SEQ>
  52.         <SEQ TYPE="OPERATOR">+-+</SEQ>
  53.         <SEQ TYPE="OPERATOR">-</SEQ>
  54.         <SEQ TYPE="OPERATOR">.</SEQ>
  55.         <SEQ TYPE="OPERATOR">/</SEQ>
  56.         <SEQ TYPE="OPERATOR"><</SEQ>
  57.         <SEQ TYPE="OPERATOR"><=</SEQ>
  58.         <SEQ TYPE="OPERATOR"><></SEQ>
  59.         
  60.         <KEYWORDS>
  61.             <!-- basic keywords -->
  62.             <KEYWORD1>beginfig</KEYWORD1>
  63.             <KEYWORD1>endfig</KEYWORD1>
  64.             <KEYWORD1>for</KEYWORD1>
  65.             <KEYWORD1>upto</KEYWORD1>
  66.             <KEYWORD1>downto</KEYWORD1>
  67.             <KEYWORD1>def</KEYWORD1>
  68.             <KEYWORD1>enddef</KEYWORD1>
  69.             <KEYWORD1>vardef</KEYWORD1>
  70.             <KEYWORD1>step</KEYWORD1>
  71.             <KEYWORD1>until</KEYWORD1>
  72.             <KEYWORD1>endfor</KEYWORD1>
  73.             <KEYWORD1>bye</KEYWORD1>
  74.             <KEYWORD1>if</KEYWORD1>
  75.             <KEYWORD1>elseif</KEYWORD1>
  76.             <KEYWORD1>else:</KEYWORD1>
  77.             <KEYWORD1>fi</KEYWORD1>
  78.             <KEYWORD1>exitif</KEYWORD1>
  79.             <KEYWORD1>exitunless</KEYWORD1>
  80.             <KEYWORD1>forever:</KEYWORD1>
  81.             <KEYWORD1>forsuffixes</KEYWORD1>
  82.             <KEYWORD1>end</KEYWORD1>
  83.             <KEYWORD1>begingroup</KEYWORD1>
  84.             <KEYWORD1>endgroup</KEYWORD1>
  85.             <KEYWORD1>save</KEYWORD1>
  86.             <KEYWORD1>unknown</KEYWORD1>
  87.             <KEYWORD1>input</KEYWORD1>
  88.             <KEYWORD1>newinternal</KEYWORD1>
  89.         
  90.             <!-- statements -->
  91.             <KEYWORD2>addto</KEYWORD2>
  92.             <KEYWORD2>clip</KEYWORD2>
  93.             <KEYWORD2>cutdraw</KEYWORD2>
  94.             <KEYWORD2>draw</KEYWORD2>
  95.             <KEYWORD2>drawarrow</KEYWORD2>
  96.             <KEYWORD2>drawdblarrow</KEYWORD2>
  97.             <KEYWORD2>fill</KEYWORD2>
  98.             <KEYWORD2>filldraw</KEYWORD2>
  99.             <KEYWORD2>interim</KEYWORD2>
  100.             <KEYWORD2>let</KEYWORD2>
  101.             <KEYWORD2>loggingall</KEYWORD2>
  102.             <KEYWORD2>newinternal</KEYWORD2>
  103.             <KEYWORD2>pickup</KEYWORD2>
  104.             <KEYWORD2>save</KEYWORD2>
  105.             <KEYWORD2>setbounds</KEYWORD2>
  106.             <KEYWORD2>shipout</KEYWORD2>
  107.             <KEYWORD2>show</KEYWORD2>
  108.             <KEYWORD2>showdependencies</KEYWORD2>
  109.             <KEYWORD2>showtoken</KEYWORD2>
  110.             <KEYWORD2>showvariable</KEYWORD2>
  111.             <KEYWORD2>special</KEYWORD2>
  112.             <KEYWORD2>tracingall</KEYWORD2>
  113.             <KEYWORD2>tracingnone</KEYWORD2>
  114.             <KEYWORD2>undraw</KEYWORD2>
  115.             <KEYWORD2>unfill</KEYWORD2>
  116.             <KEYWORD2>unfilldraw</KEYWORD2>
  117.             
  118.             <!-- variables -->
  119.             <KEYWORD3>ahangle</KEYWORD3>
  120.             <KEYWORD3>ahlength</KEYWORD3>
  121.             <KEYWORD3>bboxmargin</KEYWORD3>
  122.             <KEYWORD3>charcode</KEYWORD3>
  123.             <KEYWORD3>circmargin</KEYWORD3>
  124.             <KEYWORD3>day</KEYWORD3>
  125.             <KEYWORD3>defaultcolormodel</KEYWORD3>
  126.             <KEYWORD3>defaultdx</KEYWORD3>
  127.             <KEYWORD3>defaultdy</KEYWORD3>
  128.             <KEYWORD3>defaultpen</KEYWORD3>
  129.             <KEYWORD3>defaultscale</KEYWORD3>
  130.             <KEYWORD3>labeloffset</KEYWORD3>
  131.             <KEYWORD3>linecap</KEYWORD3>
  132.             <KEYWORD3>linejoin</KEYWORD3>
  133.             <KEYWORD3>miterlimit</KEYWORD3>
  134.             <KEYWORD3>month</KEYWORD3>
  135.             <KEYWORD3>mpprocset</KEYWORD3>
  136.             <KEYWORD3>pausing</KEYWORD3>
  137.             <KEYWORD3>prologues</KEYWORD3>
  138.             <KEYWORD3>restoreclipcolor</KEYWORD3>
  139.             <KEYWORD3>showstopping</KEYWORD3>
  140.             <KEYWORD3>time</KEYWORD3>
  141.             <KEYWORD3>tracingcapsules</KEYWORD3>
  142.             <KEYWORD3>tracingchoices</KEYWORD3>
  143.             <KEYWORD3>tracingcommands</KEYWORD3>
  144.             <KEYWORD3>tracingequations</KEYWORD3>
  145.             <KEYWORD3>tracinglostchars</KEYWORD3>
  146.             <KEYWORD3>tracingmacros</KEYWORD3>
  147.             <KEYWORD3>tracingonline</KEYWORD3>
  148.             <KEYWORD3>tracingoutput</KEYWORD3>
  149.             <KEYWORD3>tracingrestores</KEYWORD3>
  150.             <KEYWORD3>tracingspecs</KEYWORD3>
  151.             <KEYWORD3>tracingstats</KEYWORD3>
  152.             <KEYWORD3>tracingtitles</KEYWORD3>
  153.             <KEYWORD3>troffmode</KEYWORD3>
  154.             <KEYWORD3>truecorners</KEYWORD3>
  155.             <KEYWORD3>warningcheck</KEYWORD3>
  156.             <KEYWORD3>year </KEYWORD3>
  157.             <KEYWORD3>background</KEYWORD3>
  158.             <KEYWORD3>currentpen</KEYWORD3>
  159.             <KEYWORD3>currentpicture</KEYWORD3>
  160.             <KEYWORD3>cuttings</KEYWORD3>
  161.             <KEYWORD3>defaultfont</KEYWORD3>
  162.             <KEYWORD3>extra_beginfig</KEYWORD3>
  163.             <KEYWORD3>extra_endfig</KEYWORD3> 
  164.  
  165.             <!-- constants -->
  166.             <KEYWORD4>beveled</KEYWORD4>
  167.             <KEYWORD4>black</KEYWORD4>
  168.             <KEYWORD4>blue</KEYWORD4>
  169.             <KEYWORD4>bp</KEYWORD4>
  170.             <KEYWORD4>butt</KEYWORD4>
  171.             <KEYWORD4>cc</KEYWORD4>
  172.             <KEYWORD4>cm</KEYWORD4>
  173.             <KEYWORD4>dd</KEYWORD4>
  174.             <KEYWORD4>ditto</KEYWORD4>
  175.             <KEYWORD4>down</KEYWORD4>
  176.             <KEYWORD4>epsilon</KEYWORD4>
  177.             <KEYWORD4>evenly</KEYWORD4>
  178.             <KEYWORD4>false</KEYWORD4>
  179.             <KEYWORD4>fullcircle</KEYWORD4>
  180.             <KEYWORD4>green</KEYWORD4>
  181.             <KEYWORD4>halfcircle</KEYWORD4>
  182.             <KEYWORD4>identity</KEYWORD4>
  183.             <KEYWORD4>in</KEYWORD4>
  184.             <KEYWORD4>infinity</KEYWORD4>
  185.             <KEYWORD4>left</KEYWORD4>
  186.             <KEYWORD4>mitered</KEYWORD4>
  187.             <KEYWORD4>mm</KEYWORD4>
  188.             <KEYWORD4>mpversion</KEYWORD4>
  189.             <KEYWORD4>nullpicture</KEYWORD4>
  190.             <KEYWORD4>origin</KEYWORD4>
  191.             <KEYWORD4>pc</KEYWORD4>
  192.             <KEYWORD4>pencircle</KEYWORD4>
  193.             <KEYWORD4>pensquare</KEYWORD4>
  194.             <KEYWORD4>pt</KEYWORD4>
  195.             <KEYWORD4>quartercircle</KEYWORD4>
  196.             <KEYWORD4>red</KEYWORD4>
  197.             <KEYWORD4>right</KEYWORD4>
  198.             <KEYWORD4>rounded</KEYWORD4>
  199.             <KEYWORD4>and</KEYWORD4>
  200.             <KEYWORD4>squared</KEYWORD4>
  201.             <KEYWORD4>true</KEYWORD4>
  202.             <KEYWORD4>unitsquare</KEYWORD4>
  203.             <KEYWORD4>up</KEYWORD4>
  204.             <KEYWORD4>white</KEYWORD4>
  205.             <KEYWORD4>withdots</KEYWORD4>
  206.                         
  207.             <!-- functions -->
  208.             <FUNCTION>boxit</FUNCTION>
  209.             <FUNCTION>boxjoin</FUNCTION>
  210.             <FUNCTION>bpath</FUNCTION>
  211.             <FUNCTION>buildcycle</FUNCTION>
  212.             <FUNCTION>circleit</FUNCTION>
  213.             <FUNCTION>circleit</FUNCTION>
  214.             <FUNCTION>circleit</FUNCTION>
  215.             <FUNCTION>dashpattern</FUNCTION>
  216.             <FUNCTION>decr</FUNCTION>
  217.             <FUNCTION>dotlabel</FUNCTION>
  218.             <FUNCTION>dotlabel</FUNCTION>
  219.             <FUNCTION>dotlabels</FUNCTION>
  220.             <FUNCTION>drawboxed</FUNCTION>
  221.             <FUNCTION>contents</FUNCTION>
  222.             <FUNCTION>drawdot</FUNCTION>
  223.             <FUNCTION>drawoptions</FUNCTION>
  224.             <FUNCTION>drawunboxed</FUNCTION>
  225.             <FUNCTION>fixpos</FUNCTION>
  226.             <FUNCTION>named</FUNCTION>
  227.             <FUNCTION>fixsize</FUNCTION>
  228.             <FUNCTION>image</FUNCTION>
  229.             <FUNCTION>incr</FUNCTION>
  230.             <FUNCTION>label</FUNCTION>
  231.             <FUNCTION>label</FUNCTION>
  232.             <FUNCTION>labels</FUNCTION>
  233.             <FUNCTION>max</FUNCTION>
  234.             <FUNCTION>max</FUNCTION>
  235.             <FUNCTION>min</FUNCTION>
  236.             <FUNCTION>min</FUNCTION>
  237.             <FUNCTION>pic</FUNCTION>
  238.             <FUNCTION>thelabel</FUNCTION>
  239.             <FUNCTION>thelabel</FUNCTION>
  240.             <OPERATOR>rotatedaround</OPERATOR>
  241.             <!-- operators -->
  242.             <OPERATOR>abs</OPERATOR>
  243.             <OPERATOR>angle</OPERATOR>
  244.             <OPERATOR>arclength</OPERATOR>
  245.             <OPERATOR>arctime</OPERATOR>
  246.             <OPERATOR>ASCII</OPERATOR>
  247.             <OPERATOR>bbox</OPERATOR>
  248.             <OPERATOR>bluepart</OPERATOR>
  249.             <OPERATOR>boolean</OPERATOR>
  250.             <OPERATOR>bot</OPERATOR>
  251.             <OPERATOR>ceiling</OPERATOR>
  252.             <OPERATOR>center</OPERATOR>
  253.             <OPERATOR>char</OPERATOR>
  254.             <OPERATOR>cmykcolor</OPERATOR>
  255.             <OPERATOR>colormodel</OPERATOR>
  256.             <OPERATOR>color</OPERATOR>
  257.             <OPERATOR>cosd</OPERATOR>
  258.             <OPERATOR>cutafter</OPERATOR>
  259.             <OPERATOR>intersection</OPERATOR>
  260.             <OPERATOR>cutbefore</OPERATOR>
  261.             <OPERATOR>intersection</OPERATOR>
  262.             <OPERATOR>cyanpart</OPERATOR>
  263.             <OPERATOR>cycle</OPERATOR>
  264.             <OPERATOR>decimal</OPERATOR>
  265.             <OPERATOR>dir</OPERATOR>
  266.             <OPERATOR>direction</OPERATOR>
  267.             <OPERATOR>directionpoint</OPERATOR>
  268.             <OPERATOR>directiontime</OPERATOR>
  269.             <OPERATOR>div</OPERATOR>
  270.             <OPERATOR>dotprod</OPERATOR>
  271.             <OPERATOR>floor</OPERATOR>
  272.             <OPERATOR>fontsize</OPERATOR>
  273.             <OPERATOR>greenpart</OPERATOR>
  274.             <OPERATOR>greypart</OPERATOR>
  275.             <OPERATOR>hex</OPERATOR>
  276.             <OPERATOR>infont</OPERATOR>
  277.             <OPERATOR>intersectionpoint</OPERATOR>
  278.             <OPERATOR>intesctiontimes</OPERATOR>
  279.             <OPERATOR>inverse</OPERATOR>
  280.             <OPERATOR>known</OPERATOR>
  281.             <OPERATOR>length</OPERATOR>
  282.             <OPERATOR>ulft</OPERATOR>
  283.             <OPERATOR>llft</OPERATOR>
  284.             <OPERATOR>lft</OPERATOR>
  285.             <OPERATOR>llcorner</OPERATOR>
  286.             <OPERATOR>lrcorner</OPERATOR>
  287.             <OPERATOR>magentapart</OPERATOR>
  288.             <OPERATOR>makemakeconvex</OPERATOR>
  289.             <OPERATOR>mexp</OPERATOR>
  290.             <OPERATOR>mlog</OPERATOR>
  291.             <OPERATOR>mod</OPERATOR>
  292.             <OPERATOR>normaldeviate</OPERATOR>
  293.             <OPERATOR>not</OPERATOR>
  294.             <OPERATOR>numeric</OPERATOR>
  295.             <OPERATOR>oct</OPERATOR>
  296.             <OPERATOR>odd</OPERATOR>
  297.             <OPERATOR>or</OPERATOR>
  298.             <OPERATOR>of</OPERATOR>
  299.             <OPERATOR>penoffset</OPERATOR>
  300.             <OPERATOR>picture</OPERATOR>
  301.             <OPERATOR>point</OPERATOR>
  302.             <OPERATOR>postcontrol</OPERATOR>
  303.             <OPERATOR>precontrol</OPERATOR>
  304.             <OPERATOR>redpart</OPERATOR>
  305.             <OPERATOR>reverse</OPERATOR>
  306.             <OPERATOR>swapped</OPERATOR>
  307.             <OPERATOR>rgbcolor</OPERATOR>
  308.             <OPERATOR>rotated</OPERATOR>
  309.             <OPERATOR>reflectedabout</OPERATOR>
  310.             <OPERATOR>round</OPERATOR>
  311.             <OPERATOR>lrt</OPERATOR>
  312.             <OPERATOR>urt</OPERATOR>
  313.             <OPERATOR>rt</OPERATOR>
  314.             <OPERATOR>scaled</OPERATOR>
  315.             <OPERATOR>scantokens</OPERATOR>
  316.             <OPERATOR>token</OPERATOR>
  317.             <OPERATOR>top</OPERATOR>
  318.             <OPERATOR>to</OPERATOR>
  319.             <OPERATOR>shifted</OPERATOR>
  320.             <OPERATOR>sind</OPERATOR>
  321.             <OPERATOR>slanted</OPERATOR>
  322.             <OPERATOR>sqrt</OPERATOR>
  323.             <OPERATOR>string</OPERATOR>
  324.             <OPERATOR>str</OPERATOR>
  325.             <OPERATOR>subof</OPERATOR>
  326.             <OPERATOR>substring</OPERATOR>
  327.             <OPERATOR>transformed</OPERATOR>
  328.             <OPERATOR>transform</OPERATOR>
  329.             <OPERATOR>ulcorner</OPERATOR>
  330.             <OPERATOR>uniformdeviate</OPERATOR>
  331.             <OPERATOR>unitvector</OPERATOR>
  332.             <OPERATOR>unknown</OPERATOR>
  333.             <OPERATOR>urcorner</OPERATOR>
  334.             <OPERATOR>whatever</OPERATOR>
  335.             <OPERATOR>xpart</OPERATOR>
  336.             <OPERATOR>xxpart</OPERATOR>
  337.             <OPERATOR>xypart</OPERATOR>
  338.             <OPERATOR>yellowpart</OPERATOR>
  339.             <OPERATOR>ypart</OPERATOR>
  340.             <OPERATOR>yxpart</OPERATOR>
  341.             <OPERATOR>yypart</OPERATOR>
  342.             <OPERATOR>zscaled</OPERATOR>
  343.             <OPERATOR>dashed</OPERATOR>
  344.             <OPERATOR>pen</OPERATOR>
  345.             <OPERATOR>suffix</OPERATOR>
  346.             <OPERATOR>expr</OPERATOR>
  347.         </KEYWORDS>
  348.     
  349.     </RULES>
  350. </MODE>